﻿<%@ Page Title="News" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Design.aspx.cs" Inherits="Solution.Design" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content runat="server" ID="FeaturedContent" ContentPlaceHolderID="FeaturedContent">
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1><%: Page.Title.PadRight(40, ' ').ToUpper() %></h1><h2><asp:Label runat="server" ID="lblTitle"></asp:Label></h2>
            </hgroup>
            <asp:Label runat="server" ID="lblIntro"></asp:Label>
        </div>
    </section>
</asp:Content>
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <asp:Repeater runat="server" ID="rptDesigns">
        <ItemTemplate>
            <div class="center-content">
                <div style="margin-bottom: 20px; font-size: 22px; color: rgb(102, 133, 193)">
                    <a href='DesignDetail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>'
                        style ="width: 600px;">
                        <%# DataBinder.Eval(Container.DataItem, "Title").ToString().ToUpper() %>
                    </a>
                </div>
                <a href='DesignDetail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>'>
                    <img src='<%# DataBinder.Eval(Container.DataItem, "Thumb") %>' 
                        alt='<%# DataBinder.Eval(Container.DataItem, "Title") %>'/>
                </a>
                <div>
                    <%# DataBinder.Eval(Container.DataItem, "Detail") %>
                </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
